import sys
import os
import time
import xml.etree.ElementTree as XMLET
from PySide6 import QtCore, QtGui, QtWidgets

import BesEqEditorWidget

class MainUi(QtWidgets.QMainWindow):
    def __init__(self) -> None:
        super().__init__()
        self.init_ui()

    def init_ui(self):
        self.resize(1200, 500)
        self.main_widget = QtWidgets.QWidget()
        self.main_layout = QtWidgets.QVBoxLayout()
        self.main_widget.setLayout(self.main_layout)
        self.setCentralWidget(self.main_widget)
        self.setWindowTitle("BinEditor")

        self.main_stacked_widget = QtWidgets.QStackedWidget()
        # self.bes_eq_editor_widget = QtWidgets.QWidget()
        # w = BesEqEditorWidget.MainWidget()
        self.bes_eq_editor_widget = BesEqEditorWidget.MainWidget()
        self.main_stacked_widget.addWidget(self.bes_eq_editor_widget)
        self.main_layout.addWidget(self.main_stacked_widget)
        self.main_stacked_widget.setCurrentIndex(0)


def main():
    app = QtWidgets.QApplication(sys.argv)
    gui = MainUi()
    gui.show()
    sys.exit(app.exec())


if __name__ == "__main__":
    main()
